package com.xmg.p2p.business.service;

import com.xmg.p2p.business.domain.BidRequest;
import com.xmg.p2p.business.domain.MoneyWithdraw;
import com.xmg.p2p.business.domain.PaymentScheduleDetail;
import com.xmg.p2p.business.domain.SystemAccount;

import java.math.BigDecimal;

/**
 * @BelongsProject: jinrong-website
 * @BelongsPackage: com.xmg.p2p.business.service.impl
 * @author: Andy
 * @date: 2021.4.15 13:58
 * @Description: 平台账户的相关服务
 * @since JDK 1.8
 */
public interface SystemAccountService {
    void update(SystemAccount systemAccount);
    /**
     * 创建平台的账户
     */
    void initSystemAccount();

    /**
     * 平台收取手续费
     * @param borrowChargeFee 手续费流水
     * @param bidRequest    借款对象的信息
     */
    void chargeBorrowFee(BigDecimal borrowChargeFee, BidRequest bidRequest);

    /**
     * 平台收取利息管理费
     * @param interestChargeFee 管理费
     * @param psd   借款的信息
     */
    void chargeInterestFee(BigDecimal interestChargeFee, PaymentScheduleDetail psd);

    /**
     * 平台收取提现手续费
     * @param m
     */
    void moneyWithdrawChargeFee(MoneyWithdraw m);
}
